import request from '@/utils/request'

// 查询通道属性列表
export function listProperty(query) {
  return request({
    url: '/iot/property/list',
    method: 'get',
    params: query
  })
}

// 查询通道属性详细
export function getProperty(id) {
  return request({
    url: '/iot/property/' + id,
    method: 'get'
  })
}

// 新增通道属性
export function addProperty(data) {
  return request({
    url: '/iot/property',
    method: 'post',
    data: data
  })
}

// 修改通道属性
export function updateProperty(data) {
  return request({
    url: '/iot/property',
    method: 'put',
    data: data
  })
}

// 删除通道属性
export function delProperty(id) {
  return request({
    url: '/iot/property/' + id,
    method: 'delete'
  })
}
